package com.homework.factory;

import com.homework.dao.UserDao;
import com.homework.dao.impl.UserDaoImpl;

public class DaoFactory {
    private static UserDao userDao;

    private DaoFactory() {
    }

    public static UserDao getUserDao() {
        if (userDao==null){
            return new UserDaoImpl();
        }
        return userDao;
    }
}
